import cv2 as cv
import numpy as np

img = cv.imread('../resources/miku.jpg')
cv.imshow('image', img)

while True:
    kb_event = cv.waitKey(1)
    if kb_event == ord('q'):
        break
    elif kb_event == ord('a'):
        gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY)
        cv.imshow('image', gray)
    elif kb_event == ord('b'):
        blur = cv.GaussianBlur(img, (7, 7), 0)
        cv.imshow('image', blur)